package br.com.clinica.supercao.veterinario.controller.view;

import org.apache.struts2.config.Action;
import org.apache.struts2.config.Result;
import org.apache.struts2.config.Results;

import br.com.clinica.supercao.entity.Veterinario;
import br.com.clinica.supercao.entity.filter.VeterinarioSearchFilter;
import br.com.clinica.supercao.home.controller.AbstractSuperCaoAction;
import br.com.clinica.supercao.service.VeterinarioService;
import br.com.clinica.supercao.service.impl.VeterinarioServiceImpl;
@Action(name="Veterinario!*",namespace="/model")
@Results({
	@Result(name=VeterinarioAction.INIT,value="/jsp/veterinario/cadastrarVeterinario.jsp"),
	@Result(name=VeterinarioAction.INSERT,value="/jsp/veterinario/cadastrarVeterinario.jsp"),
	@Result(name=VeterinarioAction.INSERT_SUCCESS,value="/jsp/homeLogin/homeLogin.jsp")
})
public class VeterinarioAction extends AbstractSuperCaoAction<Veterinario, VeterinarioSearchFilter, VeterinarioService<Veterinario, VeterinarioSearchFilter>> {

	private static final long serialVersionUID = 1L;

	@Override
	protected VeterinarioService<Veterinario, VeterinarioSearchFilter> getEntityService() {
		return new VeterinarioServiceImpl();
	}

}
